/* @(#)GSOrganizationDelAction.java    V0.1
 *
 * Project: GSdevelop
 *
 * Modify Information:
 * =============================================================================
 *   Author       Date       Description
 *   ------------ ---------- ---------------------------------------------------
 *   owen         2006-2-15
 *
 * Copyright Notice:
 * =============================================================================
 *    Copyright (c) 2001-2006 Beijing HiTRUST Technology Co., Ltd. 1808 Room, 
 *        Science & Technology Building, No. 9 South Street, Zhong Guan Cun, 
 *        Haidian District, Beijing ,100081, China All rights reserved.
 *
 *    This software is the confidential and proprietary information of
 *        Beijing HiTRUST Technology Co., Ltd. ("Confidential Information").
 *        You shall not disclose such Confidential Information and shall use it
 *        only in accordance with the terms of the license agreement you entered
 *        into with HiTRUST.
 *
 * Warning:
 * =============================================================================
 * 
 */
package com.hitrust.gs.action;

import com.hitrust.gs.business.GSOrganizationProcessor;
import com.hitrust.gs.lib.GSBaseConstants;
import com.hitrust.gs.service.GSBaseAction;
import com.hitrust.gs.service.GSBaseForm;

/**
 * 删除组织机构
 */
public class GSOrganizationDelAction extends GSBaseAction{

    
    public String execute(GSBaseForm aForm) throws Exception 
    {        
        String tOrgid = aForm.getRequest().getParameter("orgid");
        
        GSOrganizationProcessor.withdrawTask(tOrgid);
        
        aForm.getRequest().setAttribute("requery","true");
        
		aForm.getRequest().setAttribute("s_gsorgid",aForm.getRequest().getParameter("s_gsorgid"));
		aForm.getRequest().setAttribute("s_gsorgname",aForm.getRequest().getParameter("s_gsorgname"));
        
		//得翻页信息
		aForm.getRequest().setAttribute("s_pageNo",aForm.getRequest().getParameter("s_pageNo"));
        
        return GSBaseConstants.FORWARD_SUCCESS;
    }

}
